package com.drinks.yiniang.adapter.banner;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseViewHolder;
import com.drinks.yiniang.R;
import com.drinks.yiniang.adapter.base.BaseQuickRCVAdapter;
import com.drinks.yiniang.common.camera.album.entity.GoodsTagPoints;
import com.drinks.yiniang.entity.community.CommunityNewsJson;
import com.drinks.yiniang.entity.photo.Photos;
import com.drinks.yiniang.ui.widget.layout.RandomDragTagLayout;
import com.drinks.yiniang.utils.GlideUtils;
import com.hansen.library.utils.CommonUtils;
import com.hansen.library.utils.StringUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 点评banner adapter
 * @author han
 * @date 2019/8/30
 */
public class CommentsBannerAdapter extends BaseQuickRCVAdapter<CommunityNewsJson.CommunityNewsImg, BaseViewHolder> {

    public CommentsBannerAdapter(Context mContext, @Nullable List<CommunityNewsJson.CommunityNewsImg> data) {
        super(R.layout.item_comments_banner, data);
    }

    @Override
    protected void convert(final BaseViewHolder helper, CommunityNewsJson.CommunityNewsImg item) {
        helper.setIsRecyclable(false);

        GlideUtils.load(mContext, (ImageView) helper.getView(R.id.iv_comments_banner), item.getOriginal());
    }
}
